package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 班级学生关联表
 * @TableName t_class_student
 */
@TableName(value ="t_class_student")
@Data
public class ClassStudent implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 班级ID
     */
    @TableField(value = "classId")
    private Long classId;

    /**
     * 学生ID
     */
    @TableField(value = "studentId")
    private Long studentId;

    /**
     * 状态(1为在读/2为已退学)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 加入时间
     */
    @TableField(value = "joinTime")
    private Date joinTime;

    /**
     * 编辑时间
     */
    @TableField(value = "editTime")
    private Date editTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}